﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MusteriTakipProgrami
{
    public partial class AnaForm : Form
    {
        public AnaForm()
        {
            InitializeComponent();
        }


        MusteriAra musteriAra;
        MusteriKayit musterikayit;
        UrunAra urunara;
        UrunEkle urunekle;
        SatisAra satisara;
        SatisKayit satiskayit;

        private void AnaForm_Load(object sender, EventArgs e)
        {
            TakipHatirlatma HatirlatmaEkrani = new TakipHatirlatma();
            HatirlatmaEkrani.MdiParent = this;
            HatirlatmaEkrani.Show();
        }

        private void yedekAlToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void cikisToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void musteriAraToolStripMenuItem_Click(object sender, EventArgs e)
        {

            if (musteriAra != null)
                musteriAra.Dispose();
            
            musteriAra = new MusteriAra();
            musteriAra.MdiParent = this;
            musteriAra.Show();
        }

        private void musteriKayitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (musterikayit != null)
                musterikayit.Dispose();

            musterikayit = new MusteriKayit();
            musterikayit.MdiParent = this;
            musterikayit.Show();
        }

        private void urunAraToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (urunara != null)
                urunara.Dispose();

            urunara = new UrunAra();
            urunara.MdiParent = this;
            urunara.Show();
        }

        private void urunKayitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (urunekle != null)
                urunekle.Dispose();

            urunekle = new UrunEkle();
            urunekle.MdiParent = this;
            urunekle.Show();
        }

        private void satisAraToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (satisara != null)
                satisara.Dispose();

            satisara = new SatisAra();
            satisara.MdiParent = this;
            satisara.Show();
        }

        private void satisKayitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (satiskayit != null)
                satiskayit.Dispose();

            satiskayit = new SatisKayit();
            satiskayit.MdiParent = this;
            satiskayit.Show();
        }

        private void toplamTutarBilgileriToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void musteriTipineGoreTutarBilgileriToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void musteriyeGoreTutarBilgileriToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void takipFormuToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        

        
    }
}
